<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./lib/vue-2.5.9.js"></script>
</head>

<body>
<div id="app">
    <input type="button" value="点击一下按钮，俊哥胖三斤" v-on:click="add">
    <input type="button" value="点击一下按钮，俊哥胖三斤" @click="add">
    <h3>俊哥当前重量值：{{weight}}</h3>
</div>
<script>
    const vm = new Vue({
        el: "#app",
        data: {
            weight: 10
        },
        methods: {
            add() {
                this.weight += 3
            }
        }

    })
</script>
</body>
</html>